export default Vue => {
    Vue.directive('delay', {
        inserted: function(el) {
            el.addEventListener('click', () => {
                el.disabled = true
                setTimeout(() => {
                    el.disabled = false
                }, 2000)
            })
        }
    })
}
